package com.xiao.common.controller;

import com.xiao.common.util.ResultUtil;

/**
 * @Author xiaoxiaoping
 * @Date 2020/1/21
 */
public abstract class ResultBaseController<E>{
    protected ResultUtil<E> success(String msg,E entity) {
        return ResultUtil.SUCCESS(msg,entity);
    }

    protected ResultUtil<E> fail(String errorMsg,E entity) {
        return ResultUtil.FAIL(errorMsg,entity);
    }
}
